<?php
	ob_start();
	session_start();
	include './data/cn.php';
		$rscnh = DataProvider::ExecuteQuery($cnh);
		while($host = mysql_fetch_array($rscnh))
		{
		$rscnmd = DataProvider::ExecuteQuery($cnmd);
		while($div = mysql_fetch_array($rscnmd))
		{
			
		include $div["md_link"].'header.php';
		echo'
		<div style="'.$div4px.'"></div>
		<div style="'.$div80top.'" align="center">
		<div style="width:960px;" align="right">
		<OBJECT>
		<embed src="'.$div["md_sty"].'banner.swf" width="560" height="80" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer"; type="application/x-shockwave-flash" menu="false" wmode="transparent"></embed>
		</OBJECT>
		</div></div>
		<div style="width:100%; height:23px;">
		';
		include $div["md_link"].'top.div.time.php';
		echo '
		</div>
		<div style="'.$div4pxa.'"></div>
		<div align="center" id="container">
			<div class="sidebar1">';
		include $div["md_link"].'leftmain.php';
		echo'
			</div>
			<div class="content">
			';
		include $div["md_link"].'mainid.php';
		
		echo '
			</div>
			<div class="sidebar2">';
		include $div["md_link"].'rightmain.php';
		echo'
			</div>
		</div>
		<div style="'.$div4pxbt.'">
		</div>
		';
		include $div["md_link"].'footer.php';
		}
		}
		if(isset($_SERVER['REMOTE_ADDR'])){
		$ip = $_SERVER['REMOTE_ADDR'];
		$ipset = "select * from ip where ip.ip = '$ip'";
		$rsip = DataProvider::ExecuteQuery($ipset);
			if (mysql_num_rows($rsip) > 0)
			{
				echo '';
			}else
			{
				$ipsetup = "INSERT INTO ip VALUES ('','$ip')";
				DataProvider::ExecuteQuery($ipsetup);
			}
		}
?>